package entity.simple;

import java.util.Date;
import com.springboot.frame.excel.annotation.ExcelAttribute;
import com.springboot.frame.excel.annotation.ExcelIgnore;
import com.springboot.frame.excel.annotation.ValidExcel;
import customHandler.Md5CellHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ValidExcel
public class SimpleStudent {

  private Integer id;

  private String name;

  private String sex;

  private Boolean married;

  private Date birthday;

  private Double grade;

  @ExcelIgnore(ignoreRead = false)
  @ExcelAttribute(value = "", typeHandler = Md5CellHandler.class)
  private String md5;

  public SimpleStudent(Integer id, String name, String sex, Boolean married, Date birthday,
      Double grade) {
    this.id = id;
    this.name = name;
    this.sex = sex;
    this.married = married;
    this.birthday = birthday;
    this.grade = grade;
  }
}
